<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="javascript:;">本部卡退款明细</a></li>
		</ul>
		<form class="well form-search" id="form_search" method="post" action="">
			<if condition="$is_manager">
                <select id="s_m_rid" name="s_m_rid" onchange="change_s_m_rid()" style="margin:0px;">
                    <option value="">请选择上级卡片所属机构</option>
                    <foreach name="logistics_manager_list" item="litem">
                        <option value="{$litem['id']}" <if condition="$s_m_rid == $litem['id']">selected</if>>{$litem.logistics_name}</option>
                    </foreach>
                </select>
				<select id="s_rid" name="s_rid" style="margin:0px;">
					<option value="">请选择卡片所属机构</option>
					<foreach name="logistics_list" item="litem">
						<option value="{$litem['id']}" <if condition="$s_rid == $litem['id']">selected</if>>{$litem.logistics_name}</option>
					</foreach>
				</select>
				<select id="s_admin_id" name="s_admin_id" style="margin:0px;">
					<option value="">请选择操作用户</option>
					<foreach name="admin_list" item="litem">
						<option value="{$litem['id']}" <if condition="$s_admin_id == $litem['id']">selected</if>>{$litem.user_nicename}</option>
					</foreach>
				</select>
			</if>
			<input type="text" name="s_start_time" id="s_start_time" value="<php> echo date('Y-m-d H:i',$s_start_time);</php>" class="js-datetime" placeholder="开始时间" >
			至
			<input type="text" name="s_end_time" id="s_end_time" value="<php> echo date('Y-m-d H:i',$s_end_time);</php>" class="js-datetime" placeholder="结束时间">
			<input type="text" name="s_card_number" id="s_card_number" value="{$s_card_number}" placeholder="请输入卡号" >
			<input type="submit" class="btn btn-primary" value="搜索" />
			<input type="hidden" name="s_download" id="s_download" value="0"/>
			<a class="btn btn-primary" style="float: right;margin-right:15px;margin-bottom:10px;" href="javascript:downloadExcel(1);">导出报表</a>

		</form>
		<form class="js-ajax-form" action="" method="post">

			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
                        <th width="50">账单号</th>
                        <th width="50">卡号</th>
						<th width="50">卡片所属机构	</th>
						<th width="50">退款金额	</th>
                        <th width="50">退款前余额</th>
						<th width="50">操作员	</th>
						<th width="50">操作员手机号	</th>
						<th width="50">创建时间	</th>
						<th width="50">退款描述	</th>
					</tr>
				</thead>
				<foreach name="list" item="vo">
				<tr>
                    <td><b>{$vo.number}</b></td>
                    <td>{$vo.card_number}</td>
                    <td>{$vo.logistics_name}</td>
					<td>{$vo.price}</td>
                    <td>{$vo.before_balance}</td>
                    <td>{$vo.user_nicename}</td>
					<td>{$vo.user_phone}</td>
					<td>{$vo.create_time}</td>
					<td>{$vo.desc}</td>
				</tr>
				</foreach>

			</table>

			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js?4"></script>

	<script>
		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location = "{:U('AdminCard/refund_bill',$formget)}";
			}
		}
        $(function(){
            $('#s_m_rid').select2();
            $('#s_rid').select2();
            $("#s_admin_id").select2();
        });

	</script>
</body>
</html>